package com.woniu.order.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 吴彦祖
 * @since 2024年05月23日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("change_details")
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("转单详情实体类")
public class ChangeDetails implements Serializable {

    private static final long serialVersionUID = 1L;

    /*
     * 转单详情表
     */
    @ApiModelProperty(name = "id",value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /*
     * 订单号
     */
    @ApiModelProperty(name = "orderNum",value = "订单号")
    @TableField("order_num")
    private String orderNum;

    /*
     * 转单员工id
     */
    @ApiModelProperty(name = "employId",value = "转单员工id")
    @TableField("employ_id")
    private Long employId;

    /*
     * 目标员工id
     */
    @ApiModelProperty(name = "targetId",value = "目标员工id")
    @TableField("target_id")
    private Long targetId;

    /*
     * 转单状态0待审核 1已完成
     */
    @ApiModelProperty(name = "state",value = "转单状态0待审核 1已完成")
    @TableField("state")
    private Long state;

    /*
     * 父转单表id
     */
    @ApiModelProperty(name = "parentId",value = "父转单表id")
    @TableField("parent_id")
    private Long parentId;

    /*
     * 备注
     */
    @ApiModelProperty(name = "comment",value = "备注")
    @TableField("comment")
    private String comment;

    /*
     * 发起转单时间
     */
    @ApiModelProperty(name = "time",value = "发起转单时间")
    @TableField("time")
    private LocalDateTime time;

    /*
     * 站点id
     */
    @ApiModelProperty(name = "stationId",value = "站点id")
    @TableField("station_id")
    private Long stationId;

    /*
     * 操作人
     */
    @ApiModelProperty(name = "adminId",value = "操作人")
    @TableField("admin_id")
    private Long adminId;

    /*
     * 转单原因
     */
    @ApiModelProperty(name = "reason",value = "转单原因")
    @TableField("reason")
    private String reason;

    /*
     * 操作时间
     */
    @ApiModelProperty(name = "confirmTime",value = "操作时间")
    @TableField("confirm_time")
    private LocalDateTime confirmTime;


}
